﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.Survey>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Create Survey</legend>
        <%: Html.HiddenFor(model => model.ID) %>
        <div class="editor-label">
            Survey Title
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Title, new { @class = "longTextField" })%>
            <%: Html.ValidationMessageFor(model => model.Title) %>
        </div>
        <p>
            <%: Html.ActionLink("Cancel", "Index") %>
            <input type="submit" name="qtype" value="Save and add essay question" />
            <input type="submit" name="qtype" value="Save and add multiple-choice question" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
